package org.hibernate.tuple.entity;

import java.util.Map;

import org.hibernate.mapping.PersistentClass;
import org.hibernate.tuple.DynamicMapInstantiator;
import org.hibernate.tuple.Instantiator;

import sm.util.SMMap;

public class SMEntityTuplizer extends DynamicMapEntityTuplizer {

	public SMEntityTuplizer(EntityMetamodel entityMetamodel,
			PersistentClass mappedEntity) {
		super(entityMetamodel, mappedEntity);
	}

	protected Instantiator buildInstantiator(
			final PersistentClass persistentClass) {
		return new DynamicMapInstantiator(persistentClass) {
			protected Map generateMap() {
				return new SMMap();
			}
		};
	}

}
